package com.gzu.emr.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;

/**
 * @author chuchu
 * @version 1.0
 * @date 2023-07-20
 **/
@Data
@Schema(description = "药品类")
public class Drug {
    @Schema(description = "主键")
    private BigInteger id;

    @Schema(description = "药品编号")
    private String code;

    @Schema(description = "药品名称")
    private String name;

    @Schema(description = "通用名称")
    private String genericName;

    @Schema(description = "规格")
    private String specification;

    @Schema(description = "制造商")
    private String manufacturer;

    @Schema(description = "批准文号")
    private String approvalNumber;

    @Schema(description = "生产日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createDate;

    @Schema(description = "有效期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date expirationDate;

    @Schema(description = "存储条件")
    private String storageConditions;

    @Schema(description = "适应症")
    private String disease;

    @Schema(description = "价格")
    private BigDecimal price;

    @Schema(description = "剂型")
    private String dosageForm;

    @Schema(description = "分类")
    private String type;

    @Schema(description = "成分")
    private String ingredients;

    @Schema(description = "库存")
    private Integer stock;

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "使用说明")
    private String usageInstructions;
}
